﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterBackEnd.Master" AutoEventWireup="true" CodeFile="ItemOut.aspx.cs" Inherits="Pages_Payment_ItemOut" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="/Js/Pages/Payment/ItemOut.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            Pages_Payment_ItemOut.documentReady(<%=Newtonsoft.Json.JsonConvert.SerializeObject(gates) %>);
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="tabs_wrapper">
        <ul class="tabs">
            <li class="selected tab_link"><span class="tab_link">Quản lý gói vàng</span> </li>
        </ul>
    </div>
    <div id="divList">
    <div class="container_data" id="divSearch">
        <div class="header_container">
            <span class="container_text">Tìm kiếm</span>
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="form form_3cols">
                <div class="content_info">
                    <ul>
                        <li class="content_info_left">Cổng:</li>
                        <li class="content_info_right" style="width: 160px">
                            <select id="ddlGateWaySearch">
                                <option value="-1">Tất cả</option>
                                <% foreach (var gate in gates)
                                   {
                                %>
                                    <option value="<%=gate.Id %>"><%=gate.Name %></option>
                                <%} %>
                            </select>
                        </li>
                        <li class="content_info_left">Trạng thái:</li>
                        <li class="content_info_right" style="width: 160px">
                            <select id="ddlStatusSearch">
                                <option value="-1">Tất cả</option>
                               <option value="0">Khóa</option>
                                <option value="-1">Kích hoạt</option>
                            </select></li>
                        <div style="clear: both">
                        </div>
                    </ul>
                </div>
                <div style="clear: both;">
                </div>
            </div>
            <div class="form_btn" align="left">
                <input id="btnSearch" class="button" value="Tìm kiếm" type="button" />
            </div>
        </div>
    </div>
    <div class="container_data">
        <div class="header_container">
            <span class="container_text">Danh sách Item<span class="text_blue" style="font-size: 10px; padding-left: 3px; font-weight: normal"
                id="spTotalAdmin"></span></span>
            <div class="adminBox_Control">
                <div class="action" id="btnAddNew" style="background: url(/images/icon_add.gif) no-repeat scroll 3px 3px #C1E4FF;">
                    Thêm mới
                </div>               
            </div>
            
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="detailprice " style="padding: 2px;">
                <div id="divListItemOut">
                </div>
                <div id="divItemOutPaging" class="content_paging" style="float: left;">
                </div>
                <div style="clear: both;">
                </div>
            </div>
        </div>
    </div>
        
    </div>
    <div id="divDetail" style="display: none; width: 500px;">
        <div style="padding: 5px 5px 5px 0px">

            <div class="container_data">
                <div class="header_container">
                    <span class="container_text">Thông tin gói</span>
                    <div class="adminBox_Control">
                        <div class="action" id="btnUpdate" style="background: url(/images/icon_save.gif) no-repeat scroll 3px 3px #C1E4FF;">
                            Cập nhật
                        </div>
                        <div class="action" id="btnCancel" style="background: url(/images/icon_close.gif) no-repeat scroll 3px 3px #C1E4FF;">
                            Bỏ qua
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="content padding0">
                    <div class="form form_3cols">
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Cổng thanh toán:</li>
                                <li class="content_info_right">
                                    <select id="ddlGateWay" onchange="Pages_Payment_ItemOut.onChangeGateWay()">
                                        <% foreach (var gate in gates)
                                           {
                                        %>
                                        <option value="<%=gate.Id %>"><%=gate.Name %></option>
                                        <%} %>
                                    </select>
                                </li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Tên gói:</li>
                                <li class="content_info_right" style="width: 300px">
                                    <input id="txtName" type="text" class="formcart2" name="" style="width: 333px; float: left" /><span style="float: right; font-size: 12px; padding-top: 5px"></span></li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Mô tả:</li>
                                <li class="content_info_right">
                                    <textarea id="txtDescriptionUpdate" class="formcart2" style="width: 333px; height: 100px"></textarea>
                                </li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Số <label id="lblUnit" style="font-weight: bold; line-height: 22px"></label> nhận:</li>
                                <li class="content_info_right">
                                    <input id="txtAmount" type="text" class="formcart2" name="" style="width: 80px; float: left; margin-right: 5px" onkeydown="return COMMON.validateDigitQuantity(event)" />
                                </li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Tính ra VNĐ:</li>
                                <li class="content_info_right">
                                    <input id="txtVnd" type="text" class="formcart2" name="" style="width: 80px; float: left; margin-right: 5px" onkeydown="return COMMON.validateDigitQuantity(event)" />
                                    <label id="Label1" style="font-weight: bold; line-height: 22px"></label>
                                </li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Số vàng:</li>
                                <li class="content_info_right">
                                    <input id="txtAu" type="text" class="formcart2" name="" style="width: 80px" onkeydown="return COMMON.validateDigitQuantity(event)" /></li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Số bạc:</li>
                                <li class="content_info_right">
                                    <input id="txtAg" type="text" class="formcart2" name="" style="width: 80px" onkeydown="return COMMON.validateDigitQuantity(event)" /></li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info">
                            <ul>
                                <li class="content_info_left">Số lượng bán trong ngày:</li>
                                <li class="content_info_right">
                                    <input id="txtQuantity" type="text" class="formcart2" name="" style="width: 80px" onkeydown="return COMMON.validateDigitQuantity(event)" /></li>
                            </ul>
                            <div style="clear: both">
                            </div>
                        </div>
                        <div class="content_info" id="divStatusUpdate">
                            <ul>
                                <li class="content_info_left">Trạng thái:</li>
                                <li class="content_info_right">
                                    <select id="ddlStatus">
                                        <option value="1">Kích hoạt</option>
                                        <option value="0">Khóa</option>
                                    </select></li>
                                <div style="clear: both">
                                </div>
                            </ul>
                        </div>
                        <div id="divCreateDate">
                            <div class="content_info">
                                <ul>
                                    <li class="content_info_left">Ngày tạo:</li>
                                    <li class="content_info_right">
                                        <label id="lbCreateDate" class="formcart2" style="margin-left: 0px">
                                        </label>
                                    </li>
                                    <div style="clear: both">
                                    </div>
                                </ul>                                
                            </div>
                            <div class="content_info">
                                <ul>
                                    <li class="content_info_left">Ngày sửa cuối:</li>
                                    <li class="content_info_right">
                                        <label id="lbModifiedDate" class="formcart2" style="margin-left: 0px">
                                        </label>
                                    </li>
                                    <div style="clear: both">
                                    </div>
                                </ul>
                            
                            </div>
                        </div>
                        <div style="clear: both">
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
            <div style="clear: both;">
            </div>
        </div>
        <div style="clear: both;">
        </div>
    </div>
</asp:Content>

